#ifndef DSPSIMULATOR_ID_H
#define DSPSIMULATOR_ID_H

#include <string>
#include <simulatorV1/lexer/token.h>

/**
 * Id类用于表示一个标识符token
 */
class Id : public Token {
    std::string m_name;     // 标识符名
public:
    Id(std::string name) :
            m_name(name), Token(Tag::ID) {}

    ~Id() override = default;

    std::string toString() override;

    std::string getName(){
        return m_name;
    }
};

#endif //DSPSIMULATOR_ID_H
